﻿using SYH.IBLL;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SYH.Domain
{
    public class BaseEntity : IEntityBase
    {
        public BaseEntity()
        {
            ID = Guid.NewGuid();
            SortCode = DateTime.Now.Ticks.ToString();
        }
        /// <summary>
        /// 主键
        /// </summary>
        [Key]
        public Guid ID { get; set; }

        /// <summary>
        /// 排序条件
        /// </summary>
        [StringLength(150)]
        public string SortCode { get; set; }
        /// <summary>
        /// 标记是否已删除(逻辑删除)
        /// </summary>
        public bool IsDel { get; set; }
    }
}
